<?php

namespace App\Enums;

class AppJumpEnum
{

    //背包
    const PACKAGE = "package";
    //商场
    const SHOP = "shop";
    //动态详情
    const DYNAMIC = "dynamic";
    //我的访客
    const VISITOR = "visitor";
    //我的主页
    const HOMEPAGE = "homepage";
    //排行榜
    const RANKING = "ranking";
    //房间
    const ROOM = "room";
    //私聊
    const PRIVATE_CHAT = "private_chat";
    //我的
    const MY = "my";
    //工会首页
    const GUILD_HOMEPAGE = "guild_homepage";
    //房间设置
    const ROOM_SETTING = "room_setting";
    //动态发布
    const DYNAMIC_PUBLISH = "dynamic_publish";
    //成员审核
    const MEMBER_VERIFY = "member_verify";
    //我的工会
    const MY_GUILD = "my_guild";
    //工会账号
    const GUILD_ACCOUNT = "guild_account";
    //派对详情
    const PARTY_DETAIL = 'party_detail';
    //派对审批
    const PARTY_APPROVAL = 'party_roval';

    //主播认证
    const STREAMER_ATTESTATION = 'streamer_attestation';
    //主播认证
    const STREAMER_CENTER = 'streamer_center';

    const H5_JUMP_URL = [
        self::STREAMER_ATTESTATION => "/common/newApprove",
        self::STREAMER_CENTER => "/common/newApprove/approveCenter",
    ];

    const IOS_JUMP_URL = [
        self::PACKAGE => "33",
        self::SHOP    => "14",
        self::DYNAMIC => "34",
        self::VISITOR => "19",
        self::HOMEPAGE => "6",
        self::RANKING => "15",
        self::ROOM => "10",
        self::PRIVATE_CHAT => "21",
        self::MY => "5",
        self::ROOM_SETTING => "35",
        self::GUILD_HOMEPAGE => "36",
        self::DYNAMIC_PUBLISH => "37",
        self::MEMBER_VERIFY => "38",
        self::MY_GUILD => "39",
        self::GUILD_ACCOUNT => "41",
        self::PARTY_DETAIL => "42",
        self::PARTY_APPROVAL => "43",
    ];

    const ANDROID_JUMP_URL = [
        self::PACKAGE => "/moduleMall/MallBackPackActivity",
        self::SHOP    => "/moduleMall/MallMainActivity",
        self::DYNAMIC => "/moduleDynamic/DynamicDetailsActivity",
        self::VISITOR => "url",
        self::HOMEPAGE => "url",
        self::RANKING => "url",
        self::ROOM => "url",
        self::PRIVATE_CHAT => "url",
        self::MY => "url",
        self::ROOM_SETTING => "url",
        self::GUILD_HOMEPAGE => "url",
        self::DYNAMIC_PUBLISH => "url",
        self::MEMBER_VERIFY => "url",
        self::MY_GUILD => "url",
        self::GUILD_ACCOUNT => "url",
        self::PARTY_DETAIL => "/moduleParty/PartyDetailsActivity",
        self::PARTY_APPROVAL => "/moduleParty/PartyDetailsActivity",
    ];

    // 消息来源
    const SYSTEM_MESSAGE_SOURCE = 1; // 系统消息
    const NOTICE_MESSAGE_SOURCE = 2; // 官方公告消息
    const ACTIVITY_MESSAGE_SOURCE = 3; // 活动消息

    // 跳转消息类型
    const JUMP_PARAM_STRING_TYPE = 1; // 跳转参数类型：string
    const JUMP_PARAM_INT_TYPE = 2; // 跳转参数类型：int

    // 消息展示类型
    const DEFAULT_MESSAGE_TYPE = 1; // 普通
    const DETAIL_MESSAGE_TYPE = 2; // 详情
    const WEB_URL_MESSAGE_TYPE = 3; // h5链接
    const APP_URL_MESSAGE_TYPE = 4; // app链接
}
